Delete users from a file, or array

I have a list of user names that need to be deleted or archived from a DOORS database. I am have trouble getting the user object from a user name. Does anyone have some steps for the best way to proceed?
 


B8AA_James_Sullivan - Fri Jul 20 11:17:58 EDT 2018

Re: Delete users from a file, or array
davidcs - Mon Jul 23 11:46:36 EDT 2018

I've never had a issue with the find() function for returning the User.

User find() 
{Group|User} find(string name) 

You probably want to check if the user exists beforehand.

bool existsUser(string name) 

When you call the deleteUser() function make sure to read the description as I believe there may be some steps you will need to take before/after to make the deletion work.

Re: Delete users from a file, or array
PekkaMakinen - Wed Jul 25 01:23:35 EDT 2018

We just disable those users not anymore working for the company. This retains the history information in DOORS.